package com.runvp.rest.misc;

import com.runvp.common.annotation.Log;
import com.runvp.common.core.controller.BaseController;
import com.runvp.common.core.domain.AjaxResult;
import com.runvp.common.enums.BusinessType;
import com.runvp.service.biz.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 消费者Controller
 *
 * @author runvp
 * @date 2022-09-15
 */
@Controller
@ResponseBody
@RequestMapping("/app/dict")
public class DictController extends BaseController {
    private String prefix = "biz/customer";

    @Autowired
    private IDictService dictService;

    /**
     * 字典列表
     */
    @Log(title = "字典列表", businessType = BusinessType.OTHER)
    @GetMapping("/list")
    public AjaxResult list(String dictType) {
        return AjaxResult.success(dictService.dictList(dictType));
    }

}
